package com.tyk.bookstore.front.member.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
/**
 * @author tyk
 * @description 收获地址
 */
@Schema(name = "DeliveryAddress", description = "送货地址")
@TableName("delivery_address")
@Data
public class DeliveryAddressDo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1;

    @Schema(description = "ID")
    @TableId(value = "id")
    private Long id;

    @Schema(description = "用户ID")
    @TableField("member_id")
    private Long memberId;

    @Schema(description = "名称")
    @TableField("name")
    private String name;

    @Schema(description = "收件人姓名")
    @TableField("consignee")
    private String consignee;

    @Schema(description = "所在地区行政区划代码")
    @TableField("area_code")
    private Long areaCode;

    @Schema(description = "详细地址")
    @TableField("address")
    private String address;

    @Schema(description = "手机号")
    @TableField("phone")
    private String phone;

    @Schema(description = "是否默认")
    @TableField("is_defaulted")
    private Boolean defaulted;
}
